import java.sql.ResultSet;
import java.sql.SQLException;


public class Station {
	private int id = -1;
	private String name = null;
	private String detail = null;
	private int zoneId = -1;
	
	public Station (String name) {
		this.name = name;
	}
	
	public Station(ResultSet rs) throws SQLException {
		int id = rs.getInt(StationManager.STATION_ID_COLUMN);
		setId(id);
		String name = rs.getString(StationManager.NAME_COLUMN);
		setName(name);
		int zoneId = rs.getInt("zone_id");
		setZoneId(zoneId);
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public void setDetail(String detail) {
		this.detail = detail;
	}
	
	public String getDetail() {
		return detail;
	}
	
	public void setZoneId(int zineId) {
		this.zoneId = zineId;
	}
	
	public int getZoneId() {
		return zoneId;
	}
}
